//
//  StatisticsViewController.h
//  CheckersGame
//
//  Created by Guest User on 11-12-02.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define FETCHSIZE 10
#define PVP 1
#define PVC 0

@class AppDelegate;

@interface StatisticsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, NSFetchedResultsControllerDelegate> {
    //UITableView *table;
    //NSMutableArray *statArray;
}

@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) IBOutlet UITableView *table;
@property (nonatomic, retain) IBOutlet UISegmentedControl *segcomp;
@property (nonatomic, retain) NSMutableArray *statArray;

- (void)fetchHistoryData:(BOOL)matchType;
- (IBAction) didSelectPlayer:(id)sender; // - (IBAction)setDataSource:(id)sender;
- (void)saveContext;

@end



